package com.why.service;

import com.github.pagehelper.PageInfo;
import com.why.pojo.News;

import java.util.List;

public interface NewsService {

    List<News> newsList();

    PageInfo<News> selectPage(Integer pageNum,Integer pageSize);

    News selectByPrimaryKey(Integer id);

    boolean deleteByPrimaryKey(Integer id);

    boolean insertSelective(News record);

    boolean updateByPrimaryKeySelective(News record);

    News selectNewsByTitle(String title);
}
